<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<style type="text/css">
		.earth{
			border-radius: 310px;
			width: 310px;
			height: 310px;
			background-image: url(images/earth.png);
			position: relative;
			animation: run 5s linear infinite;
		}
		/* -ms- */
		@keyframes run{
			from{transform: rotate(0deg);}
			to{transform: rotate(360deg);}
		}
		.earth:hover{
			/* 鼠标移入,地球暂停旋转,鼠标移出,继续旋转 */
			animation-play-state: paused;
		}
	</style>
	<body>
		<h3>地球旋转动画效果</h3>
		<div class="earth"></div>
	</body>
</html>
